package fr.ordre66.vlcs.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import fr.ordre66.vlcs.services.IUploadManager;


@Controller
@RequestMapping("/player")
public class Player {

	@Autowired IUploadManager uploadManager;
	
    @RequestMapping(method = RequestMethod.GET, value="/simple")
    @Transactional(readOnly = false)
    public String simplePlayer(Model model) {
        
    	model.addAttribute("left", "simpleplayer.jsp");
    	model.addAttribute("right", "menu.jsp");
    	return "template";
    }
    
    @RequestMapping(method = RequestMethod.GET, value="/streaming")
    @Transactional(readOnly = false)
    public String streamingPlayer(Model model) {
        
    	model.addAttribute("left", "streamingplayer.jsp");
    	model.addAttribute("right", "menu.jsp");
    	return "template";
    }
}
